﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace Datos.Reclamos.Common
{

    public class ConexionBD
    {
        #region ATRIBUTOS

        private string cadenaConexion;
        private SqlConnection Connection;

        #endregion

        #region CONSTRUCTOR

        public ConexionBD()
        {
            this.cadenaConexion = string.Empty;
            this.Connection = null;            
        }

        #endregion
       
        #region METODOS
        
        public void Conexion()
        {            
            cadenaConexion = ConfigurationManager.ConnectionStrings["ApplicationServices"].ToString();
            Connection = new SqlConnection();
            Connection.ConnectionString = cadenaConexion;
        }

        public SqlConnection getConnection() {            
            Conexion();
            return Connection;
        }

        #endregion
    }

}
